<ion-view view-title="发布消息" class="xg-percar-publish">
  <ion-nav-buttons side="left">
    <a class="ion-ios-arrow-back" href="#/personal_car"></a>
  </ion-nav-buttons>
  <ion-content class="xg-percar-publish-content">
    <div class="list">
      <ng-form name="categoryForm">
      <div class="item item-input item-select">
        <div class="input-label">
          类别
        </div>
        <select ng-options="category.description for category in categories" ng-model="category.selectedCategory" required>

        </select>
      </div>
      <label class="item item-input item-stacked-label">
        <span class="input-label">截止日期</span>
        <input type="date" placeholder="" required ng-model="category.date">
      </label>
      <label class="item item-input item-stacked-label">
        <span class="input-label">详细内容</span>
        <textarea placeholder="请在此写下详细内容,不少于15个字" required ng-minlength="15" ng-model="category.content"></textarea>
      </label>
      <button class="button button-full xg-car-detail-btn" ng-click="submit()" ng-disabled="categoryForm.$invalid">
        提交
      </button>
      </ng-form>
    </div>
  </ion-content>
</ion-view>
